<!-- toaster directive -->
<toaster-container
	toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
	<ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
		<li><a ui-sref="main.tpl.homePage"><i class="fa fa-home"></i> 首页</a></li>
		<li><a ui-sref="main.funScenes.task.list">任务管理</a></li>
		<li class="active" ng-bind="title"></li>
		<a style="float: right;margin-right: 12%;margin-top: -10px;" ng-if="record.taskStatus==0"
		   has-permission permission='funScenes.task.update'	ui-sref="main.funScenes.task.update({id:record.taskId})" class="btn btn-sm btn-info">
			<i class="icon-tag m-r-sm text-md">编辑</i></a>
	</ul>
</div>

<!-- 内容区域 -->
<div class="wrapper-md content">
	<div class="panel panel-default">
		<!-- 头部 -->
		<div class="panel-heading font-bold">{{title}}
			<a class="btn btn-sm btn-icon btn-rounded btn-default pull-right m-t-n-xs" ui-sref="main.funScenes.task.list"><i class="text-md fa fa-times text-muted"></i></a>
		</div>

		<!--表单-->
		<div class="panel-body">
			<form class="form-horizontal" name="user_form">
				<!--活动名称-->
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label">活动名称:</label> <label class="control-label">{{record.activityName}}</label>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				<!--路线名称-->
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label">路线名称:</label> <label class="control-label">{{record.routeName}}</label>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				<!--任务名称-->
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label">任务名称:</label> <label class="control-label">{{record.taskName}}</label>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				
				<!--时间限制-->
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label">时间限制:</label> <label class="control-label">{{record.costTime}}</label>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>

				<!--所属层级-->
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label">所在层级:</label>
					<label class="control-label" ng-if="record.sort!=1 && record.sort!=6">{{record.sort}}</label>
					<label class="control-label" ng-if="record.sort==1">首发任务</label>
					<label class="control-label" ng-if="record.sort==6">结尾任务</label>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				
				<!--任务描述-->
				<div class="form-group" >
					<label class="col-lg-2 col-sm-3 control-label" >任务描述:</label>
					<div class="col-sm-6"  >
						<label class="control-label">{{record.taskDesc}}</label>
					</div>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>
				<!--任务截止日期
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label">任务截止日期:</label> <label class="control-label">{{record.finishTime}}</label>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>-->
				<!--核销者ID-->
				<div class="form-group">
					<label class="col-lg-2 col-sm-3 control-label">核销者ID:</label> <label class="control-label">{{record.destroyBy}}</label>
				</div>
				<div class="line line-dashed b-b line-lg pull-in"></div>

			</form>
		</div>
	</div>
</div>
